<%@page import="study.itwill.team5.board.BoardCategoryItem"%>
<%@page import="study.itwill.team5.board.BoardCategory"%>
<%@page import="study.itwill.team5.house.HouseCityItem"%>
<%@page import="java.util.ArrayList"%>
<%@page import="study.itwill.team5.house.HouseCity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>

<!--// 메뉴바 -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
	<div class="container">
		<!-- 로고 -->
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target="#gnb">
				<span class="sr-only">메뉴열기</span> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="/Team-Project/index.jsp">관리자페이지</a>
		</div>
		<!-- 메뉴 항목 -->
		<div class="collapse navbar-collapse" id="gnb">
			<ul class="nav navbar-nav">
				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">회원관리 <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="/Team-Project/member/listMember.jsp">회원목록</a></li>
						<li><a href="/Team-Project/member/addMember.jsp">회원추가</a></li>
					</ul>
				</li>
				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">민박관리 <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="/Team-Project/house/listHouseCity.jsp">민박 도시
								목록</a></li>
						<li><a href="/Team-Project/house/addHouseCity.jsp">민박 도시
								추가</a>
						</li>
						<%
	HouseCity hcity = new HouseCity();
	ArrayList<HouseCityItem> citylist = hcity.listCity(0);
	
	if (citylist != null) {
		for (int i=0; i<citylist.size(); i++) {
			HouseCityItem city_item = citylist.get(i);
%>
						<li><a
							href="/Team-Project/house/listHouse.jsp?city=<%=city_item.getSeq()%>"><%=city_item.getCity_name()%></a>
						</li>
						<%
		}
	}
%>
					</ul>
				</li>
				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">게시판 <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="/Team-Project/board/listBoardCategory.jsp">카테고리
								목록</a></li>
						<li><a href="/Team-Project/board/addBoardCategory.jsp">카테고리
								추가</a></li>
						<%
	BoardCategory bCategory = new BoardCategory();
	ArrayList<BoardCategoryItem> catelist = bCategory.listBoardCategory();
	
	if (catelist != null) {
		for (int i=0; i<catelist.size(); i++) {
			BoardCategoryItem category_item = catelist.get(i);
%>
						<li><a
							href="/Team-Project/board/listBoard.jsp?category=<%=category_item.getSeq()%>"><%=category_item.getCategory_name()%></a>
						</li>
						<%
		}
	}
%>
					</ul>
				</li>
				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">나의찜 관리 <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="/Team-Project/member/listWishlist.jsp">나의찜
								내역</a></li>
						<li><a href="/Team-Project/member/addWishlist.jsp">나의찜 추가</a>
						</li>
					</ul>
				</li>
				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">관리자 계정관리 <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="/Team-Project/admin/listAdmin.jsp">관리자 계정목록</a>
						</li>
						<li><a href="/Team-Project/admin/addAdmin.jsp">관리자 계정추가</a></li>
					</ul>
				</li>
				<li><a href="/Team-Project/exchangeRate/viewExchangeRate.jsp">환율정보</a></li>
			</ul>
			<p class="navbar-text navbar-right"><a href="/Team-Project/logout.jsp" style="color: #999;">로그아웃</a></p>
		</div>
	</div>
</nav>
<!--// 메뉴바 -->